package com.designpattern.structure.Decorator;

/**
 * @author Administration
 * @date 2021/10/18 - 13:49 - 星期一
 * @project 结构型模式中的装饰者模式     抽象构件（Component）角色
 * @package com.designpattern.structure.Decorator
 * @by 晨
 */
public abstract class FastFood {
    private float price;
    private String desc;

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public abstract float cost();  //获取价格
}
